package com.example.videoworks.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.example.videoworks.common.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Lily
 * @since 2023-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("workIn")
@ApiModel(value="WorkIn对象", description="")
public class WorkIn implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "workId")
    private String workId;

    @TableField("personId")
    private String personId;

    @TableField("role")
    private String role;

    @TableField("job")
    private String job;

    @TableField("isKnownFor")
    private Boolean isKnownFor;

    @TableField(exist = false)
    private List<Work> works;

    @TableField(exist = false)
    private Principal principal;

    public void setWorks(List<Work> works) {
        this.works = works;
    }

    public void setPrincipal(Principal principal) {
        this.principal = principal;
    }
}
